import 'package:cashbook/model/user_vo.dart';
import 'package:flutter/material.dart';
import 'package:event_bus/event_bus.dart';

class Manager {
  // 工厂模式
  factory Manager() => _getInstance();

  static Manager get instance => _getInstance();
  static Manager _instance;

  Manager._internal() {
    // 初始化
  }

  static Manager _getInstance() {
    if (_instance == null) {
      _instance = new Manager._internal();
    }
    return _instance;
  }

  bool isLogin = false;
  String ask1 = '问题1：你最喜欢的电影或者演员？';
  String ask2 = '问题2：你喜欢什么运动？';
  EventBus eventBus = EventBus();
  User loginUser = User();
}
